package domain.player;

import Domain.GameGrid;
import Domain.Player.Disc;
import Domain.Square;
import java.awt.Color;

/**
 * Computer represents a Computer player
 */
public class Computer extends Player {

    /**
     * Used for getting a good move.
     */
    private int aiType;

    /**
     * Constructor.
     */
    public Computer(String name, Disc discID, Color discColor) {
        super(name, discID, discColor);

        // setAIType(AI.AI_MINMAX);
        //setAIType(AI.AI_HASHMAP);
    }

    public int getAIType() {
        return aiType;
    }

    @Override
    public Square getNextMove(GameGrid gameGrid) {
        Square square = new Square();
        square.setX(-1);
        square.setY(-1);
        return square;
    }

    public int getNrOfEvaluatedMoves() {
        return 0;
    }

    @Override
    public PlayerType getType() {
        return PlayerType.COMPUTER;
    }
    
    public int getScoreForMove(){
            return 0;//((AI_Minimax)ai).getMoveScore();
        }


    @Override
    public String toString() {
        return super.toString()
                + ", type = computer, color = " + getDiscColor();
    }
}
